<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">

<title>修改用户信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/layer/layer.js"></script>
<script type="text/javascript" src="<%=path%>/js/dialog/dialog.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function openFirstLayer(){

                layer.open({
                  type: 2,
                  title: ['实验室信息','background-color:rgb(40, 144, 241);padding-left:5px;color:#fff'],
                  fix: false, //不固定
                  closeBtn: 1, //显示关闭按钮
                  shade: [0.3],
                  area: ['90%', '90%'],
                  offset: '10px', //右下角弹出,
                  
                  //anim: 4,
                  content: ['<%=basePath%>admin/findlaboraryid.action', 'yes'] 
                });
            }       
      $(function(){
      //获取session中角色ID区分管理员、实验技术员、教师,三个角色公用一个页面
               var levels=sessionStorage.getItem("levels");
            $("#level").val(levels);
            $("#classes").val(levels);
            });        
  </script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a>
			</li>
			<li><a href="#">用户信息</a>
			</li>
		</ul>
	</div>

	<div class="formbody">

		<div class="formtitle">
			<span>基本信息</span>
		</div>
		<form action="<%=basePath%>admin/updateuser.action" method="post"
			id="myform">
				<input name="pageing.classes" id="classes" type="hidden" class="dfinput"/>
			<!-- 实验技术人员角色ID  -->
			<input name="administrator.password" value="${administrator.password}"id="password" type="hidden" class="dfinput"/>
			<input name="administrator.level" id="level" type="hidden" class="dfinput"/>
			<input name="administrator.laboraryid" type="hidden" value="${administrator.laboraryid}" class="dfinput"/>
			<input name="administrator.userid" type="hidden" value="${administrator.userid}" class="dfinput"/>
			<ul class="forminfo">
				<li><label>姓名：</label><input name="administrator.username"
					type="text" class="dfinput" value="${administrator.username}"/>
				</li>
				<li><label>性别：</label> <input name="administrator.sex"
					type="radio" value="1" <s:if test="administrator.sex==1"> checked="checked"</s:if>/>男 <input
					name="administrator.sex"<s:if test="administrator.sex==2"> checked="checked"</s:if> type="radio" value="2" />女</li>
				<li><label>联系方式：</label><input name="administrator.phone"
					type="text" class="dfinput" value="${administrator.phone}"/>
				</li>
				<li><label>所属实验室:</label>
				    <s:iterator value="liLaborary" var="list">
				    <s:if test='#list.labid==administrator.laboraryid'>${list.labname}</s:if>
				    </s:iterator>
				</li>
				
				<li><label>&nbsp;</label><input name="" type="submit"
					class="btn" value="确认保存" /> <input type="button" name="button"
					value="返回" class="btn"
					onclick="javascript:window.history.back(-1);" />
				</li>
			</ul>

		</form>
	</div>


</body>
</html>
